/**
 * @description 全局处理filter
 */

import Vue from 'vue'
import moment from 'moment'

Vue.filter('formatDate', function (timestamp, format = 'YYYY-MM-DD HH:mm:ss') {
  return moment(timestamp).format(format)
})
